Optimal. Leaf size=19 \[ -\frac{\sin (e+f x) \cos ^2(e+f x)}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0242992, antiderivative size = 19, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.048, Rules used = {4043} \[ -\frac{\sin (e+f x) \cos ^2(e+f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4043
Rubi steps
\begin{align*} \int \cos ^3(e+f x) \left (-3+2 \sec ^2(e+f x)\right ) \, dx &=-\frac{\cos ^2(e+f x) \sin (e+f x)}{f}\\ \end{align*}
Mathematica [B] time = 0.0202027, size = 46, normalized size = 2.42 \[ \frac{\sin ^3(e+f x)}{f}-\frac{3 \sin (e+f x)}{f}+\frac{2 \sin (e) \cos (f x)}{f}+\frac{2 \cos (e) \sin (f x)}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 32, normalized size = 1.7 \begin{align*}{\frac{- \left ( 2+ \left ( \cos \left ( fx+e \right ) \right ) ^{2} \right ) \sin \left ( fx+e \right ) +2\,\sin \left ( fx+e \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.92614, size = 28, normalized size = 1.47 \begin{align*} \frac{\sin \left (f x + e\right )^{3} - \sin \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.464534, size = 43, normalized size = 2.26 \begin{align*} -\frac{\cos \left (f x + e\right )^{2} \sin \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15735, size = 31, normalized size = 1.63 \begin{align*} \frac{\sin \left (f x + e\right )^{3} - \sin \left (f x + e\right )}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]